package com.imagepreview.plugin;

import android.os.Bundle;
import android.util.Log;

import androidx.annotation.Nullable;

import com.test.ad.AdPlugin;

import io.flutter.embedding.android.FlutterActivity;
import io.flutter.embedding.engine.FlutterEngine;

/**
 * Flutter Activity主入口
 */
public class ImagePreviewActivity extends FlutterActivity {
    @Override
    public void configureFlutterEngine(FlutterEngine flutterEngine) {
        // 注册插件
        flutterEngine.getPlugins().add(new RouterPlugin());
        flutterEngine.getPlugins().add(new AdPlugin());
    }

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.d("ImagePreviewActivity", "onCreate.....");
    }
}
